ADP\BaseVersion\Includes\Core\RuleProcessor\PriceCalculator C

Total Complexity 115
Dependencies 16
Dependents 0
Total lines 654
Lines of code 420
Logical lines of code 233
Comment lines 127
Methods 19
Properties 3

Methods 19

Method Rating Maintainability Complexity Lines of code
applyItemDiscount()
C
31 26 115
makeSetItemDiscount()
B
36 17 85
calculateAdjustmentsLeft()
B
44 17 44
calculatePriceForSetSplitDiscountByCost()
A
42 15 54
calculatePrice()
A
52 8 25
calculateSinglePrice()
S
54 6 21
applyToItem()
S
59 5 15
checkDiscount()
S
62 4 12
checkAdjustmentTotal()
S
70 4 6
makePriceFixed()
S
69 2 7
applyToAllItemsInCollection()
S
73 2 5
makeDiscountPercentage()
S
69 2 6
makeFree()
S
82 1 3
__construct()
S
74 1 5
makeOverpriceAmount()
S
78 1 3
makeDiscountAmount()
S
78 1 3
makeOverpricePercentage()
S
77 1 3
calculatePriceForSet()
S
79 1 3
checkOverprice()
S
73 1 5